package tests;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import org.junit.*;

import warehouse.Order;
import warehouse.OrderList;
import static org.junit.Assert.*;

/**
 * @author Apeiranthitis Antonios
 *		   Grassos Konstantinos
 *		   Moschos Theodoros:
 */
public class OrderListTest {

	public OrderListTest() {
	}


	/**
	 * Test of checkEquality method, of class OrderList.
	 */
	@Test
	public void testCheckEquality() {

		String expResult = "true";
		Order order = new Order("1, X102, 105, 200");
		OrderList list = new OrderList()  ;
		list.addDetails(order);

		String check= Boolean.toString(list.checkEquality(order));
		System.out.println(check);
		assertEquals (check, expResult);
	}
}
